home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1997 November
/
Macworld (1997-11).dmg
/
Updaters
/
PowerKey 3.3.3 Update
/
Extras
/
PowerKey & PageSentry
/
PageSentry Demo
/
Additional AppleScripts
/
DisplayDialog
next >
Wrap
Text File
|
1996-10-12
|
911b
|
28 lines
--- PageSentry Notification Applet
--- DisplayDialog
on «event SENTfail» sentryName given «class FURL»:failedURL, «class XTRA»:extra, «class STAT»:Status
-- Create a string containing all the information we recieved
set myText to "Received Sentry Event" & return & return & ¬
"SentryName: " & sentryName & return & ¬
"Failed URL: " & failedURL & return & ¬
"Extra: " & extra & return & ¬
"Status: " & Status
-- Get the length of the string we just created
set myLength to length of myText
-- If the length is greater than 255 charactures, cut of the status line
if myLength > 255 then
set myText to "Received Sentry Event" & return & return & ¬
"SentryName: " & sentryName & return & ¬
"Failed URL: " & failedURL & return & ¬
"Extra: " & extra & return & ¬
"Status: Too much data to fit in window"
end if
-- Display the dialog
display dialog myText
end «event SENTfail»